import {login} from '@/api/login'

const user = {
  state: {
    name: '',
    userId:""
  },

  mutations: {
    SET_NAME: (state, name) => {
      state.name = name
    },
    SET_USERID: (state, userId) => {
      state.userId = userId
    }
  },

  actions: {

    // 获取用户信息
    GetInfo({commit, state}) {
      return new Promise((resolve, reject) => {

      })
    }

  }
}

export default user
